package app

type PushOption struct {
	Quiet    bool
	Registry string
	Images   []string
}

func NewPushRunner(opt *PushOption) (*Runner, error) {
	r := &Runner{
		RunOption: &RunOption{
			Quiet:    opt.Quiet,
			Center:   "localhost",
			Registry: opt.Registry,
			Images:   opt.Images,
			OnlyPush: true,
		},
	}
	err := r.load()
	if err != nil {
		return nil, err
	}
	return r, nil
}
